package com.tuanzi.loan.business.entity.extratemplate;

import com.tuanzi.loan.core.entity.AuditEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author caiwanlin
 * @create 2018-10-16 11:48
 */
@Data
@Entity
@Table(name = "loan_extra_template")
@EqualsAndHashCode(callSuper = true)
public class ExtraTemplate extends AuditEntity implements Serializable{
    private static final long serialVersionUID = 6551186284554632846L;

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "template_id",unique = true)
    private Integer templateId;

    @NotBlank
    @Column(name = "template_name")
    private String templateName;

    @NotNull
    @Column(name = "pc_show")
    private Integer pcShow;

    @NotBlank
    @Column(name = "android_title")
    private String androidTitle;

    @NotNull
    @Column(name = "android_theme")
    private Integer androidTheme;

    @NotBlank
    @Column(name = "android_banner")
    private String androidBanner;

    @NotNull
    @Column(name = "android_register_type")
    private Integer androidRegisterType;

    @NotBlank
    @Column(name = "android_question")
    private String androidQuestion;

    @NotBlank
    @Column(name = "android_btn_text")
    private String androidBtnText;

    @Column(name = "android_btn_bottom_text")
    private String androidBtnBottomText;

    @Column(name = "android_register_img")
    private String androidRegisterImg;

    @Column(name = "android_remark_img")
    private String androidRemarkImg;

    @Column(name = "android_remark_text")
    private String androidRemarkText;

    @NotBlank
    @Column(name = "ios_title")
    private String iosTitle;

    @NotNull
    @Column(name = "ios_theme")
    private Integer iosTheme;

    @NotBlank
    @Column(name = "ios_banner")
    private String iosBanner;

    @NotNull
    @Column(name = "ios_register_type")
    private Integer iosRegisterType;

    @NotBlank
    @Column(name = "ios_question")
    private String iosQuestion;

    @NotBlank
    @Column(name = "ios_btn_text")
    private String iosBtnText;

    @Column(name = "ios_btn_bottom_text")
    private String iosBtnBottomText;

    @Column(name = "ios_register_img")
    private String iosRegisterImg;

    @Column(name = "ios_remark_img")
    private String iosRemarkImg;

    @Column(name = "ios_remark_text")
    private String iosRemarkText;

    @Column(name = "android_download_info")
    private String androidDownloadInfo;

    @Column(name = "ios_download_info")
    private String iosDownloadInfo;

    @Column(name = "android_is_agreement")
    private Integer androidIsAgreement;

    @Column(name = "ios_is_agreement")
    private Integer iosIsAgreement;

}
